package com.pc.ipushpin.business.service.impl;

import com.pc.ipushpin.business.dao.UserMapper;
import com.pc.ipushpin.business.model.User;
import com.pc.ipushpin.business.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserService implements IUserService {

    @Resource
    private UserMapper mapper;

    @Override
    public int addUser(User user) {
        return mapper.insert(user);
    }
}
